package command;

/**
 * User: Alexander Martyushov
 * Date: 12/10/12
 * Time: 7:17 AM
 */
public class RemoteControl {

    Command slot;

    public RemoteControl(){}

    public void setCommand(Command command){
        slot = command;
    }

    public void buttonWasPressed(){
        slot.execute();
    }

}
